﻿using System;

namespace Zo.Config
{
    public class AppConfig
    {
        public static ConfigOption options { get; set; }
    }
    public class ConfigOption
    {
        /// <summary>
        /// JwtSecurityKey
        /// </summary>
        public string JwtSecurityKey { get; set; }

        /// <summary>
        /// JwtKeyName
        /// </summary>
        public string JwtKeyName { get; set; }

        /// <summary>
        /// 首页地址
        /// </summary>
        public string HomePageUrl { get; set; } = "/Admin/Home/";

        // <summary>
        /// 登录地址
        /// </summary>
        public string LoginPageUrl { get; set; } = "/Admin/Login/";

        /// <summary>
        /// 错误页面地址
        /// </summary>
        public string ErrorPageUrl = "~/Areas/Admin/Views/Error/Index.cshtml";
        /// <summary>
        /// 数据库链接字符串
        /// </summary>
        public string SqlConnection { get; set; }
        /// <summary>
        /// 数据库表前缀
        /// </summary>
        public string Table_prex { get; set; } = "";
    }
}